<?php


namespace BoojasrFramework\Log;


abstract class BaseLogger implements LoggerInterface
{
    public function __construct(){}

    public function log($content,$type="default"){
        $this->logImpl($content,$type);
    }

    abstract protected function logImpl($content,$type);

    public function info($content){
        $this->log($content,"info");
    }

    public function error($content){
        $this->log($content,"error");
    }

    public function warning($content){
        $this->log($content,"warning");
    }
}
